// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import FastClick from 'fastclick'
import axios from 'axios'
import { LoadingPlugin } from 'vux'

// Vue.prototype.$baseUrl = "https://test.joysfintech.com";
// Vue.prototype.$axios = axios.create({
//   baseURL: Vue.prototype.$baseUrl,
//   timeout: 15000
// });

Vue.prototype.$baseUrl = ''
Vue.prototype.$axios = axios.create({
  headers: { 'AUTH-TOKEN': localStorage.getItem('AUTH-TOKEN') },
  timeout: 5000
})

import './assets/css/reset.css' // 样式初始化文件
import './assets/css/border.css' // 边框初始化文件

FastClick.attach(document.body) // 全局处理点击延迟300毫秒bug

Vue.use(LoadingPlugin)
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
